<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="author" content="{:C('WEB_SITE_TITLE')}">
    <meta name="keywords" content="{$meta_keywords}">
    <meta name="description" content="{$meta_description}">
    <meta name="generator" content="CoreThink">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="{:C('WEB_SITE_TITLE')}">
    <meta name="format-detection" content="telephone=no,email=no">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <block name="title"><title>{$meta_title}｜{:C('WEB_SITE_TITLE')}－{:C('WEB_SITE_SLOGAN')}</title></block>
    <link rel="shortcut icon" type="image/x-icon" href="__ROOT__/favicon.ico">
    <link rel="apple-touch-icon" type="image/x-icon" href="__ROOT__/favicon.ico">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/bootstrapextend/css/bootstrap.extend.css">
    <block name="style"></block>
    <script type="text/javascript" src="__PUBLIC__/jquery/jquery-1.11.1.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/bootstrap/js/bootstrap.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/bootstrapextend/js/bootstrap.extend.js" charset="utf-8"></script>
    <script type="text/javascript">
        $(function(){
            $(window).resize(function(){$('body .main').css("min-height", $(window).height()-362);}).resize(); //调整内容高度
        });
    </script>
    <block name="script"></block>
</head>
<body style="padding-top: 50px;">
    <block name="wrap">
        {:hook('PageHeader')} <!-- 文档开始钩子 -->

        <block name="top-nav">
            <nav class="navbar navbar-inverse navbar-fixed-top navbar-auto-hiding" role="navigation">
                <div class="container">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-main">
                            <span class="sr-only">切换导航</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <php>if(C('WEB_SITE_LOGO')):</php>
                            <a class="navbar-brand" href="__ROOT__/"><img alt="Brand" class="brand" src="{$Think.config.WEB_SITE_LOGO|get_cover='path'}"></a>
                        <php>else:</php>
                            <a class="navbar-brand" href="__ROOT__/">{:C('WEB_SITE_TITLE')}</a>
                        <php>endif;</php>
                    </div>
                    <div class="collapse navbar-collapse navbar-collapse-main">
                        <ul class="nav navbar-nav">
                            <li><a href="__ROOT__/">首页</a></li>
                            <corethink:category_list name="vo">
                                <li <if condition='$vo.id eq $__CURRENT_CATEGORY__'> class="active"</if> >
                                    <a href="{:U('Document/index', array('cid' => $vo['id']))}">{$vo.title}</a>
                                </li>
                            </corethink:category_list>
                        </ul>
                        <ul class="nav navbar-nav navbar-right">
                            <present name="__USER__">
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                        <i class="fa fa-user"></i> {$__USER__.username}
                                        <span class="caret"></span>
                                    </a>
                                    <ul class="dropdown-menu">
                                        <li><a href="{:U('User/index')}"><i class="fa fa-home"></i> 个人主页</a></li>
                                        <li><a href="{:U('User/center')}"><i class="fa fa-tachometer"></i> 个人中心</a></li>
                                        <li><a href="{:U('UserMessage/index')}"><i class="fa fa-envelope"></i> 消息中心</a></li>
                                        <li><a href="{:U('Addon/index')}"><i class="fa fa-weixin"></i> 微＋平台</a></li>
                                        <li class="divider hidden-xs"></li>
                                        <li><a href="{:U('User/logout')}" class="ajax-get"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                                    </ul>
                                </li>
                            <else />
                                <li><a href="#" data-toggle="modal" data-target="#login-modal">登录</a></li>
                                <li><a href="{:U('User/register')}">注册</a></li>
                            </present>
                        </ul>
                    </div>
                </div>
            </nav>
        </block>

        <block name="jumbotron"></block>

        <block name="breadcrumb">
            <div class="breadcrumbs">
                <div class="container margin-top">
                    <ul class="breadcrumb">
                        <li><a href="__ROOT__/"><span class="glyphicon glyphicon-home"></span></a></li>
                        <corethink:breadcrumb name="_breadcrumb" cid="$__CURRENT_CATEGORY__" group="$__CURRENT_CATEGORY_GROUP__">
                            <li><a href="{:U('Document/index', array('cid' => $_breadcrumb['id']))}">{$_breadcrumb.title}</a></li>
                        </corethink:breadcrumb>
                    </ul>
                </div>
            </div>
        </block>

        <block name="body">这里是内容</block>

        <block name="footer">
            <footer class="footer">
                <hr>
                <div class="container">
                    <div class="row">
                        <div class="col-sm-6 col-lg-5">
                            <h3 class="text-primary">{:C('WEB_SITE_TITLE')}</h3>
                            <p>{:C('WEB_SITE_DESCRIPTION')}</p>
                        </div>
                        <div class="col-sm-6 col-lg-6 col-lg-offset-1">
                            <div class="row">
                                <!-- 栏目分类标签调用底部导航分类 -->
                                <corethink:category_list name="vo" group="3" pid="15">
                                    <div class="col-xs-6 col-sm-3" style="height:120px;">
                                        <h4 class="text-primary">{$vo.title}</h4>
                                        <ul class="list-unstyled">
                                            <notempty name="vo._child">
                                                <volist name="vo._child" id="vo_child">
                                                    <li><a target="_blank" class="text-muted" href="{:U('Document/index/cid/'.$vo_child['id'])}">{$vo_child.title}</a></li>
                                                </volist>
                                            </notempty>
                                        <ul>
                                    </div>
                                </corethink:category_list>
                            </div>
                        </div>
                    </div>
                    <div class="row border-top padding-top">
                        <ul class="list-inline text-center">
                            <li>{:C('WEB_SITE_COPYRIGHT')}</li>
                            <li><a class="padding-left border-left" href="http://www.miibeian.gov.cn/" target="_blank">{:C('WEB_SITE_ICP')}</a></li>
                            <li><a href="http://www.corethink.cn" title="轻量级WEB产品开发框架"><span class="label label-default">CorerThink</span></a></li>
                        </ul>
                    </div>
                </div>
            </footer>
        </block>

        <block name="bottomn-nav">
            <nav class="bottom_nav navbar-fixed-bottom">
                <a class="item" href="__ROOT__/"><img src="__IMG__/tab1.png">首页</a>
                <a class="item" href="{:U('User/index')}"><img src="__IMG__/tab2.png">余额</a>
                <a class="item" href="{:U('UserMessage/index')}"><img src="__IMG__/tab3.png">消息</a>
                <div class="item has_nav" onclick="$(this).find('.more_nav').toggle();">
                    <img src="__IMG__/tab4.png">我
                    <div class="more_nav">
                        <em></em>
                        <a href="{:U('User/index')}">个人主页</a>
                        <a href="{:U('User/center')}">个人中心</a>
                        <a href="{:U('UserMessage/index')}">消息中心</a>
                    </div>
                </div>
            </nav>
        </block>

        <!-- 登录弹窗 -->
        <div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title">用户登录</h4>
                    </div>
                    <div class="modal-body">
                        <form class="form login-modal" action="{:U('User/login')}" method="post">
                            <fieldset>
                                <div class="form-group">
                                    <label class="item-label">账号<span class="check-tips"></span></label>
                                    <div class="control">
                                        <input type="text" class="form-control" placeholder="请输入邮箱/手机号/用户名" name="username">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="item-label">密码<span class="check-tips"></span></label>
                                    <div class="control">
                                        <input type="password" class="form-control" placeholder="请输入密码" name="password">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="item-label">
                                        <a href="{:U('User/register')}">立刻注册</a> 
                                        <a href="{:U('User/resetPassword')}">忘记密码</a>
                                    </label>
                                    <button type="submit" class="btn btn-primary btn-block ajax-post submit" target-form="login-modal" data-loading-text="正在登录...">登 录</button>
                                </div>
                            </fieldset>
                        </form>
                        {:hook('SyncLogin')} <!-- 第三方登陆钩子 -->
                    </div>
                </div>
            </div>
        </div>

        {:hook('PageFooter')} <!-- 文档末尾钩子 -->
        {:C('WEB_SITE_STATISTICS')} <!-- 站点统计代码 -->
    </block>
</body>
</html>
